package com.blog.service.impl;

import com.blog.dao.ChatDao;
import com.blog.pojo.Chat;
import com.blog.service.ChatService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: XieLiKui
 * @Description:T0D0
 **/

@Service("chatService")
public class ChatServiceImpl implements ChatService {

    @Resource(name = "chatDao")
    private ChatDao chatDao;

    @Override
    public void addChat(Chat chat) {
        chatDao.addChat(chat);
    }

    @Override
    public List<Chat> findChats() {
        return chatDao.findChats();
    }
}
